package com.hs.service;

import com.github.pagehelper.PageInfo;
import com.hs.entity.Consultant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConsultantService {
    //添加
    Integer addConsultant(Consultant consultant);
    //删除
    Integer deleteConsultant(Integer id);
    //修改
    Integer updateConsultant(Consultant consultant);
    //根据id查询
    Consultant getConsultantById(Integer id);
    //分页查询
    PageInfo<Consultant> getConsultantPage(Integer pageNum, Integer pageSize);
//    List<Consultant> getAllConsultantByPage();
    PageInfo<Consultant> getAllConsultantlist(Consultant consultant);

    //根据咨询师等级查咨询师
    PageInfo<Consultant> getConsultantByLevelName(String levelName,String tag,String address,String gender,int pageNum,int pageSize);
    List<Consultant> getConsultantByLevelNameAndTag(String levelName,String tag);
}
